import './index.css'
import { Button } from 'antd'

const Card = (props) => {
    return (
        <div className="card">
            <div className="card-header">
                <h5 className="card-title">{props.title}</h5>
                <div className="card-subtitle">{props.subtitle}</div>
            </div>
            <div className="card-body">
                <div className="card-text">{props.children}</div>
            </div>
            <div className="card-footer">
                <Button type='primary' className='confirm'>确定</Button>
                <Button type='default' danger>取消</Button>
            </div>
        </div>
    )
}

export default Card